package com.zeroone.star.project.systemhome;

import com.zeroone.star.project.dto.systemhome.ProcessDTO;
import com.zeroone.star.project.enums.ProcessStatus;
import com.zeroone.star.project.vo.JsonVO;

import java.util.List;

/**
 * @BelongsProject: oa-java
 * @BelongsPackage: com.zeroone.star.project.systemhome
 * @Author: dashuai
 * @CreateTime: 2024-11-17  21:06
 * @Description: 流程相关的接口
 * @Version: 1.0
 */
public interface ProcessApis {
    /**
     * @description: 查询不同流程的数量
     * @author: dashuai
     * @date: 2024/11/17 21:07
     * @param: [id] 登录人id
     * @return: sonVO<List<Integer>>
     **/
    JsonVO<List<Integer>> queryVaryProcessCount(String id);

    /**
     * @description: 获取流程信息
     * @author: dashuai
     * @date: 2024/11/17 21:10
     * @param: [id, status] 登录人id, 流程状态
     * @return: com.zeroone.star.project.vo.JsonVO<java.util.List<ProcessDTO>>
     **/
    JsonVO<List<ProcessDTO>> queryProcessList(String id, ProcessStatus status);
}
